Fix parsing shapes error