fix refresh when updating categories