[vm]: Fixed potential bug