first fix to tilecount issue