Fix for karma in debug mode.