Removed unused variable and fix one bug

paginationDirectiveInitialized is not used elsewhere in the project