Fix controller hasAction problem