Fixed undo
Fixing random placement