Fixed an error with spec hash variables