I've just copied the existing code. I've refactored the code now. So, it should be fixed.