Resolved error on plugin activation hook