fixing submit errors