Fix autopointer init