fix issues in console