Fixed double submit bug