facial detection code fixed