Pasting components cannot be undone

While I copy & paste components, I notice that it cannot be undone sometimes. I think the condition is when there is nothing in a layer and you paste component(s). When there is outline already, undo works fine.

This has to do with the automatic alignment. It doesn’t play well with undo.

Can you fix it?