fix for population probability problem