Fix to set layout priority