Bug fixes, and magical object creation fix