removing useless shape attribute