Corrected tray initialization