Fixed unload of object data

Signed-off-by: Markus Tillman <reetopps6@hotmail.com>