Fix some errors that prevent the UI to show up