Fixed some bounds errors