fix undefined index notice
fix composer.json whitespace