Refraction Problem with Mosquito Plugin

Hello everyone,

I am currently working on optical refraction, for which I am using the Mosquito plugin. On picture no. 1 you can see the correct refraction angle in red. The problem is, as soon as the angle gets too steep and a total reflection should actually take place, the plugin only shows me an orthogonal red line (picture no. 2).

Does anyone have an idea how to get around this?

Best regards
Refraction Problem.3dm (26.7 KB)
Refraction (15.7 KB)