fixed some small issues

a few small issues that arose with last commit