Fixed push

This fixes push, without this code, push feature crashes.