fixed issue with globaltargets as array