Bugfix for p.attention