I don't know exactly what the problem is based on your screenshot and description, but in general you shouldn't use the layer number you should use the layer name. I've run into bugs in the past when using the number.
It might help if you posted a .cap.