Fix PHP notices. Version 1.0.4