fixed a bug in blug