fixes registration bug in iFrame