fixed bug when creating static mappings of elements to graphics