fixed initialize callback bug