Fixed dividebyzero bug in where