fixed retarded longstanding bug