bugfix for custom fields handling while updating resources (@dawidpietrolaj)