fix for crash with certain settings configurations