fix bug with wrong function call in tile loading