fixed the exception which was thrown when the character was instantiated