added fix to avoid async problem with webkit