fixed css and NAN issue