fix bugs about get function