Torpedoes do not run straight

Just finished adding RFB and RSRDC to SH4. First time playing was the sub school. During the final run I aimed at a stationary merchant but instead of running straight, both torpedoes took hard 90 degree turns. Full realism with automatic targeting disabled.