Fix multiple modal bug