Fixed the order of update/return statements for dispenser.