fix erro variable not found