Fixed a big that would cause errors in class locators

If the class locator received a boolean as a parameter it would fail.