Fixed command registration problem in script module.