FIX: fix bug in mosaique generation