Fixed getting spectrum for custom region