Fixed `RemoveRedundantPushed`

- Fixed `RemoveRedundantPushes`
- Small fixes in code