fixed undefined index on install