fixed that stats display could only be enabled after context was created