undefined variable fixed