Fix custom field issue

Signed-off-by: Daniel Bondergaard <danielboendergaard@gmail.com>