Fixed runtime error when computing bounds of a splitted loop