fixes #17 (Self reference is not working)