Fix double comparison