fixed for #376 comment-46528103