fixed getDoc