fixed unknown(?) issue inside while loop.