fixing issue caused by flattening repo