fix for not initializing on Firefox