Bugfixes to export security field