gallery bug fixed