Modified not to be added the invalid value except the defined orientation