Fixes refraction parsing