How to avoid making losses