fixes modal:footer render method (index was given as a second argument to append)