Fixing some bug on the useless variable verificaiton