fix get function bug