Fixed php strict errors