added patch for db window after suspend