Fixed few bugs, getattr finally working