Fix a bug in plugin implementation (missing return)