Fix chaplin bug https://github.com/chaplinjs/chaplin/issues/534.