fix getting global