Fix --orientation bug: wasn't setting attribute correctly