Bugfix, undefined index line 44