Fixed error form throwing errors