Fix logical mistake, introduced by myself