fixed passing nil bug