fix constant load issue and bit mask issue