Replace increment method in spams controller