Compiles but results in Empty Path exception