Fixed boundary error