Fix a typo in method name and improve get snippet