fix autolod and event const codes