Fixed bug with activity resource