Commit number loads after setTimeout