Fixed bug on layer tree menu and paste action activation