fixed syncronicity error