Fixed duplicate submission bug