fixed issue with orientation