Fixed issue where binding cannot be set (when instantiating classes)