Removed a bug in sttrev()