fix bugs that led to interface not to be up