fixed assertion for options.orientation, see #281