fix undef return from cache get method