1. Removed warnings.
2. Solved the bug where in if Cost is blank, app use to crash.