Added missing control of active pills