fixed assertion causing gradle build error in previous commit