fix bugs on cent OS