add extra safety set timeout for window height