Fixed a bug that caused OOP constructors to not have access to other classes