Fixed issue#2: loading layer still present