Forgot to check the last index of VAR