Fixed usage of deprecated variable