assorted bug fixes for QuickMagIC