fixing a few more cases of the same error