fixed automation problems