Fix settings menu crash