Fixing bug concerning cancellation of wp folder selection