Fix wrong reference to self