bugfix for null value in external