Fix bugs

Centerline empty, window empty