fixing admin view bug for custom fields