Fixes category locking