fixed double prev cammand