fixed an issue with non-existent targets