implement a horrible workaround for photonstorm/phaser#1355.