fix a buggy