Fix issue 771

Fix refresh for custom fields.
Merge pull request #772 from AlexKovynev/patch-1

Fix issue 771