Are you shifting to the smallest cog before you remove the rear wheel? I find that shifting up before removing the wheel makes it much easier to know where the chain goes when the wheel is re-installed