Loopholes in the Juvenile Justice Act, the Indian Penal Code (IPC) and the Code of Criminal Procedure (CrPC) have resulted in the alleged rapists getting bail in the Jubilee Hills minor girl gangrape case, Telangana Minister for IT and Industries K T Rama Rao said on Friday.