fixed issue with None targets