Fix bug

getByteCount is only for >API12