fixed possible crash
Merge branch 'master' into beta
obsolete methods