fixed broken comparison