Fixed const correctness changed in 5.6