Fix bug in system.