fixed a bug in output extensions