fixed bug:
css doesn't be set properly in firefox.