Fixed html safe output bug