do some fix on warnings in compile