bugfix fixed substr call