Fixed bug of action manager