bounds bugfix