Debug message not correct