Bug fix

line 54 min bug fix