Solving bug in line 12