fixed an interesting bug