Fixed bug with previous update