Fixed error where pre-setup in constructor is not filtering out java classes correctly