Fixed issues using $con