Fix bug in get script