fixed annoying ass bug with log table