fixed javafy for use with if and count with