finish layout bug