Fixes bug in discipline module.