fixed getContigs bug