Fix the bug of wpfload()