Fixed error while rendering the form