Fixed bug when creating menu category - when file exceeds size limit