Fixed taking picture twice