fixed the nil bug