settimeout wrong order