Page onload bug workaround (hot fix)