Fixed sliding bug