removes 'null' from log