fixed issue with http listener