Fix processFields method

Fix processFields method to include default values