Fixes crash