Fixed creating and emitting specs