Fixed bad constant type bug