fix static error setting