Quantum gravity correction, evolution of scalar field and inflation