bugfix out of bounds exception