bugfix for creating apiece