fixed if statement (plugin still not worling)