fix a few minor php warnings in widgets