Fix undefined object