Fixed negative bit shift error in Data encapsulation