stop crash caused by missing conditional