See #605 (comment)