clean aler message from directive