Fix a bug in the line 1045