Fixed bug linked to bitshifting