Bugfix to prevent crash.