fixed static analyzer warning