fixed some errors while nothing is connected