grantloan bug fix