Fix for typecast bug when passing currentslide in event