bugfix, bytes length