Fixing bug in already entered check