Fixing loading page problem