fixed not detecting key amounts