fixed a bug in the creator