fix location rb issue