Fixed bug with remove

Fixed a bug where after deletion the available macros where not updated.