fix cached controller bug