bug fixes for dbGrid