fixing errors in application