A note on a modified version of the Poincaré–Birkhoff theorem