Fixed error while removing plugin