Fix bugs in localizing face rect