Fixed const/non-const warning