After effects: masking not working in select compositions
Most likely you have effects on those layers that are being applied and messing up your masks, anything from the distort effects will do this, and others as well...you can wither pre-comp your layers or use layer masks