fixed totop issue