Fixed performance issues in AbstractActivity