fixed index logged in message