Corrected the push function

And now it's working