fix stride size for region decode