fix the bug and got the solution accepted.