Server errors

Some fixes from mathics.org django logs