Fixes post submission error for newly added categories