fix possible gs getpath