I see that some verbs that take de or à and the infinitive drop the preposition when an object follows the verb. As an example, choisir de drops the preposition when referring to an object as follows:
Je choisis de partir
Je choisis la cérise
As opposed to rêver that keeps its preposition in both cases:
Je rêve de partir
Je rêve du paradis
Is there a rule for this?