Fixed missing constructor due to overwritten prototype object