fix taking address of temporary error