fix for crash hopefully