Fixes error in controller removal