Fixed a NullPointerException at creating inv