fix get function to prevent #11