Fixed action to hook adding mechanism in plugin's main class