Fix UI crash by by using the right dependencies