fixed bug in candidate coordinates