fix constants loading