Fix small potential source of unexpected behaviour in tlvm.c

Other than that, nothing really stood out to me as dangerous. Good job :)