move statement outside if..else block

I've moved the statement outside of if..else block as it should be executed in either case.