Fixed error on startup