get rid of some PHP notices