Fixed bug with size not updating

Signed-off-by: Ozan Turgut <ozanturgut@gmail.com>