Fix free_pages call