Fix button settings crash