Fixed rake task and connection check index