Fix the plugin not running on 1.7