fixes error throwing when calling methodes on the first element