App Closes when trying to access library