fixed comparison in BBDD