Fixed error with controller resolver