Prevent error if wrong parameter is passed (Index)