bug with bounds