Fixed boundary error.