a little fix in magic