fixed bug in effect creation