refraction workaround