Fixed firefox submit bug