Fixed the error when opening the add page