Fixed entering code after first try failed