Bit of code corruption not sure how happend