fixed line 322 bug