Gallery count correction