fixes a stop bug