fix problem with categories in form