Solved small bug that generated tons of warning messages.