fix global value not found