fixed bug which caused duplicate layer props not to be cleaned up