fix layout stats