Fixed running on background.