fixed NPexception