Fixed some issues with lazily loaded has many relationships