Prevent ArrayIndexOutOfBoundsExecption on money command