Fix for representative find function