fixed register of plugin for hapi