fixed bug in prep montage