Fixed crash when pulse turned on.