Fix logical errors