fixed a bug in slap