Fixed strict standards warnings