Fixed errors&warnings.