bug in where