fix gradle bugs