Fixed problem with type selector when referencing external classes