What! your code is working fine but the result is not as expected and now it's too late. So you did not test your code at the component level and now...