fix bug in spot()