fixed top-bottom problem