fixed simulation issue