Fixed enter() bug