Fix loop terminates earily bug