solved error in plugins registration