Fixed strict PHP errors