State orientation

Bug with stack