fixed #1 - adding local scope do self variable. thanks to @ladariha