found a couple bugs