Changed place of do_action()