Fix post submitting error