fixed static warnings