fix plugin to work from gem