Fixed nil scan error on deck templates