fix php strict issues