Fixes up some errors.