fix error with new amber version