Anomalous scaling behavior in Takens-Bogdanov bifurcations