Fixing type issue in trace.endBlock()

returns now a double instead of a "long"