fixed unresolved self var