Fixed reversal bug