Fix luma functions