fixed bug with submitting responses