amend(layout): fix hide rules not working