Fixed the bug for the second loan check