Fix errors when toolbar is not installed