fixed bug getWFRef