fix object null exeption