Deleted an unused variable and fixed a space in an error message.