Use status="1" instead of managed="true"

The reason is because the last statement is not valid.
The sample scripts have been updated too.