fixed bug with type form