fixed bug: check for controller existing