GPS satellite ECEF positions not aligning closely enough with TLE ITRF positions

Hi,
I'm not sure if this is the right place to put this but basically I'm parsing a gps message and calculating the satellite's ECEF coordinates from the parsed parameters. I have been attempting to do this and compare them with TLE ECEF positions but something is clearly wrong as they are very far off. I have been following this pdf : https://ascelibrary.org/doi/pdf/10.1061/9780784411506.ap03 but it feels like I'm missing something, I am thinking it is a timing issue (i.e time calculations are wrong) or a rotation is required but I'm unsure.

Original thread: https://forums.space.com/threads/gps-satellite-ecef-positions-not-aligning-closely-enough-with-tle-itrf-positions.60446/