Updated to 2013.07
Added cast to clear compiler warning