fixed a bug in the iframe code