fixed incorrect build in previous revision. Test https://gist.github.com/ilyalukyanov/5644971 was failing