fixed a nil error line 192