Improving the Reliability of Phase Detection Autofocus