fix units plugin