Fix. maybe crash on got a nil element