Fixed - compatibility with XE2

Signed-off-by: Laentir Valetov <laex@bk.ru>