removed silly log and fixed error