Fixing:
 - variable outputting in spacemean