Fixed issue when buttons below titlebar