Fix logical mistale