fixed crashing issues in category