fixing bugs that were lingering from a version mismatch