Fixed bug that actions in $actions may cause redclared class error