fixed null pointer exception during transaction (line 280)