Check parent scope phase before performing apply

See issue #30