function and category were not updated on PUT