fix broken comparison