Fix select all bug