Fixing PHP notices