Bug fix (activity resource init)