Fixed striding error in create function