Bug fix

Mistaken variable name... -_-
fixed configuration to PEN
Improved CategoryExists added FieldExists