Fixed struct method calling

Closes #103