Fixed fatal mac bug if no icon was given