fixed static bug