Fixed issues in commandsender.