Fixing some errors

Thanks @thunsaker for the messages.