fixed some magic effects

fix #338