fixed bug with push (problems with assigning the prev of the new head)