fix for exclude fields function