fixing a bug found with the Mini-theater reported by Sarah Craig.  Also fixing some other problems after consulting with @corylown about spaces that could be problematic for m.lib