fixed a minor but somewhat gamebreaking bug