Ugh I am bad at bit shifting. Fixed an off by 8 error.