Fix value error in controller block/unblock