Fixed an issue that caused a crash if no icon passed