Fix some errors with spec