Fixed bug in character module.