Fixed a bug in getbx and getbz