fix for values from layers