Code stop working after adding libraries