fixing core controller reference