fix php strict errors