Minor Code Errors

Fixed errors