Problem with rotating actors

Ive tried making a game were a cannon points to the mouse, and fires when you click. The bullet (or whatever you would call it) is created relative to the actor at 0, 0. It aslo is created to have a directional velocity moving towards were the crosshair was. The problem is, when the bullet is created, it is usually located outside the barrel. It only works properly if you point it just right. How can I get around this?