Invoice status change after paying with maxima, etc. fix