modal works with bugs