solved a bug