Fixed wrong vars compare