fixed bug : set brush error
get grid function : add safe atom code
update set grid function