fix the vetify function bug