Fixed errors with consts