Fixed the lines that caused warnings when running in debug mode