fixing a problem with an indirectly referenced class