bug fix for 3.1.3