fix the bug for active am and pm