bug fixed with css and jquery