fix reference to self.controller