Small error on While Loop and get