Gallery on load bug fixed 2