Fix to strange bug with eager loading

As seen in #339.