Fixed bug when decoding NSData objects