Fixed auto pushing code