fixed screenshot bug after rendering div added