Fix errors

Fixes for a couple of errors I've found.