Fix for active setting in ApiController