fixed a bug with http embed