fixed possible error in behavior