Fix upsd define