updating waitingpos fixed