some bug fixes on update( before this fix the app was useless/broken) and other stuff