Solved some data grabbing issues on HABTM models