Fixed some bugs with the trellis properties that were introduced in the last commit.