Fixed small bug with policy updating