Fixes error during init