Hello Vu Nguyen,
This is not a bug. 0xA0 is an 8-bit value (10100000b), so not valid for a 7-bit slave address. As noted by PE the max address would be 127 (1111111b).
I believe you are taking the R/W bit as part of the address. See the 7-bit slave addressing scheme below:

If that is the case then take only the 7 most significant bits to form the slave address. For 0xA0 (10100000b) the actual slave address would be 0x50 (1010000b).
Best Regards!
Jorge Gonzalez