Defined self on the wrong place