Fix selective dynamics. Fixes #14.