Fix for https://github.com/codecombat/codecombat/issues/1099