Fix double modal bug