fixed bug with reverse