Fixes time messure of gallery loading