fixes #42 - was trying to access align as a dict instead of object