fixed reload init function