Fixes http://stackoverflow.com/q/23115088/157882