bugfix length