handle null in bytes