fixed nasty bug: injection in websockets not well defined