fix annoying error on php 5.6