How to fix error with incomplete values?