Fixed an issue with submissions corrupting