bugfix for 3.1.4