Fixed debug warnings #313