fixed problem with submit being locked