error.log small bugs fixed