fix traceback
workaround for spads bug