fix get contents