Fixes minor errors