Fixed ps output generation