effect of amended complaint on pending motion to dismiss