fixed repository's get function