update the first time to false and the wait for text method fix