Fixed deprecated call in Enum form type