fix debug statement to use correct variable

fixes bug in plugin registration