bugfixes

Needed to restore ret address