Fix doAction() method