Fixed bug calling html_writer class