fix RDS bug