fix for protected_attributes causing logs to be all null