Make sure that when we store a value it is masked to its correct bit