loading settimeout fixed