Fixed bug in promote, 500 error and clone.