modalview remove before ready fix.