Fixed the conditional for stops js