Errors in activity concatenation fixed