fixed bug with setAll