Fix broken gravity attribute.