fixed undefined object