Fixed a bug in saving shelves for each bug (beware of lazy evaluation of querysets!).