Fixed error on submit