fix delete layouts