Camera records but it is not working correctly