Fix for the missing Dashicons

Function inside function is not a good idea in this case ;)