fixed bug
sending objects and not HTML