fix get procedure