Forgot to replace usage of T.min with TMinVal