Just fixed a little bug in the error messaging