Fixing bug for default color and layer, and adding default translation adapted to input data